#define _CRT_SECURE_NO_WARNINGS 1

#include "SList.h"

void Test01()
{
	SLTNode* phead = NULL;;
	SLTInsert(&phead, NULL, 1);
	SLTInsertAfter(SLTFind(phead, 1), 2);
	SLTInsertAfter(SLTFind(phead, 2), 3);
	SLTPrint(phead);
	SLTNode* find = SLTFind(phead, 3);
	SLTPrint(phead);
	SLTEraseAfter(SLTFind(phead, 2));
	SLTPrint(phead);
	SLTInsert(&phead, find, 4);
	SLTPrint(phead);
	SListDesTroy(&phead);
}

int main()
{
	Test01();
	return 0;
}